package com.haoxin.ai_course.modules.course.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;

/**
 * 环节用户表
 * 
 * @author xingxiangguo
 * @email bugcn@qq.com
 * @date 2022-06-10 17:24:28
 */
@Data
@TableName("ac_node_user")
@EqualsAndHashCode(callSuper = true)
public class AcNodeUser extends Model<AcNodeUser> implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(" 数据id")
	@TableId
	private Integer id;
	@ApiModelProperty(" 课程id 来自课程表主键自增id")
	private Integer courseId;
	@ApiModelProperty(" 环节id 来自环节表主键自增id")
	private Integer nodeId;
	@ApiModelProperty(" 用户id 来自用户表user_id")
	private Long userId;
	@ApiModelProperty(" 学习状态 0 未开始 1 学习完成")
	private Integer studyStatus;
	@ApiModelProperty(" 创建时间")
	private Date createTime;
	@ApiModelProperty(" 创建者")
	private Long createBy;
	@ApiModelProperty(" 更新者")
	private Long updateBy;
	@ApiModelProperty(" 更新时间")
	private Date updateTime;
	@ApiModelProperty(" 环节编号")
	private String nodeCode;
	@TableField(exist = false)
	@ApiModelProperty("下一个环节编号")
	private Integer nextNodeId;
	@ApiModelProperty("是否已退出，1是0否")
	private Integer isQuit;
	@ApiModelProperty("是否已进入，1是0否")
	private Integer isEnter;
	private Integer version;

}
